<?php
/**
 * Created By base
 * Author: Virus
 * Date: 2020/3/26
 * Time: 22:10
 */

namespace app\common\model\mysql;


use app\admin\lib\Curd;

class Category extends BaseModel
{
    use Curd;

    /**
     * 状态获取器
     * @param $value
     * @return string
     */
    public function getStatusAttr($value)
    {
        return $value ? "<i class='fa fa-check-circle'></i>" : "<i class='fa fa-close'></i>";
    }

    public function getTitleAttr($value)
    {
        return $value;
    }
}